package com.pearl.generator.pojo.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author TangDan
 * @version 1.0
 * @since 2022/8/8
 */
@Data
public class GlobalConfigRequest {

    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("名称")
    @NotBlank(message = "名称不能为空")
    private String name;

    @ApiModelProperty("禁止打开输出目录,默认值:true")
    private Integer disableOpenDir;

    @ApiModelProperty("指定输出目录，默认值: windows:D:// linux or mac : /tmp")
    private String outputDir;

    @ApiModelProperty("覆盖已生成文件，默认值:false")
    private Integer fileOverride;

    @ApiModelProperty("禁止打开输出目录，默认值:true")
    private Integer open;

    @ApiModelProperty("时间策略，DateType.ONLY_DATE 默认值: DateType.TIME_PACK")
    private String dateType;

    @ApiModelProperty("开启 swagger 模式，默认值:false")
    private Integer swagger;

    @ApiModelProperty("开启 kotlin 模式，默认值:false")
    private Integer kotlin;

    @ApiModelProperty("开启 lombok 模式，默认值:false")
    private Integer lombok;

    @ApiModelProperty("注释日期，默认值: yyyy-MM-dd")
    private String commentDate;

    @ApiModelProperty("作者名， 默认值: Pearl")
    private String author;
}
